#ifndef BIBLEREADERCALCULATORDLG_H
#define BIBLEREADERCALCULATORDLG_H

#include <QDialog>
#include <QLabel>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QComboBox>
#include <QList>
#include "bibleunit.h"
class BibleReaderCalculatorDlg : public QDialog
{
    Q_OBJECT
public:
    BibleReaderCalculatorDlg(QWidget *parent = nullptr);
    virtual ~BibleReaderCalculatorDlg();

private:
    QLineEdit *fromField;
    QLabel *toField;
    QLabel *approximate;

    QComboBox *fromUnit;
    QHBoxLayout *layout;

    QList<BibleUnit> units;

private:
    void createWidgets();
    void buildBibleUnits();

private slots:
    void calculate();
};

#endif // BIBLEREADERCALCULATORDLG_H
